package com.xyx.ssm.jdbcdao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.xyx.ssm.po.Syauthority;

@Repository
public class SyauthorityDao extends BaseDao {
	public List<Map<String, Object>> selectSyauthorityadd(){
		List<Map<String, Object>> list=sqlSession.selectList("com.xyx.ssm.jdbcdao.SyauthorityDao.selectSyauthorityAll");
		return list;
	}
	

	public int SyauthorityDelete(Integer id) {
		int num = sqlSession.delete(
				"com.xyx.ssm.jdbcdao.SyauthorityDao.deleteSyauthority", id);

		return num;

	}
	
	public int SyauthorityUpdate(Syauthority syauthority){
		int num=sqlSession.update("com.xyx.ssm.jdbcdao.SyauthorityDao.updateSyauthority", syauthority);
		return num;
	}
}
